package com.menghao.cloud.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MengHao .
 * @description {}
 * @create 2017-10-21 11:14
 */
@RestController
@RequestMapping("/hello")
public class UserController {

    @GetMapping
    public ResponseEntity<String> success() {
        return new ResponseEntity<String>("Success!", HttpStatus.OK);
    }
}
